package exception_;

public class NumberFormatException_ {
    public static void main(String[] args) {
        String name = "12f4";

        int num = 0;
        try {
            num = Integer.parseInt(name);
        } catch (NumberFormatException e) {
//            e.printStackTrace();
            System.out.println(e.getMessage());
        }
        System.out.println(num);
    }
}
